package com.itheima.mp.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.itheima.mp.enums.UserStatus;
import lombok.Data;

import java.time.LocalDateTime;

@Data
//数据库表名和实体类名不一致，需要加TableName指定一下
@TableName(value = "student",autoResultMap = true)
public class Student {

    /**
     * 学号id
     */
    @TableId(type= IdType.AUTO)
    private Long id;

    /**
     * 用户名
     */
    private String name;

}
